using System.Net.Sockets;
using System.Text;

namespace PopMail
{
    public class POP3StateObject
    {
        // Client socket.
        public Socket workSocket;

        // Size of receive buffer.
        public const int BufferSize = POP3Constants.M_BUFFER_SIZE;

        // Receive buffer.
        public byte[] buffer;

        // Received data string.
        public StringBuilder sb;

        // Command type
        public int commandType;

        public POP3StateObject()
        {
            workSocket = null;
            buffer = new byte[BufferSize];
            sb = new StringBuilder();
            commandType = 0;
        }

        public void Dispose()
        {
            workSocket = null;
            buffer = null;
            sb = null;
            commandType = 0;
        }

    }

}
